package cn.com.algery.temp.service;

import java.io.IOException;
import java.util.List;
import java.util.Map;

import cn.com.algery.temp.domain.Page;
import cn.com.algery.temp.domain.Server;


public interface ServerService {
	boolean addServer(Server server,String user_account) throws IOException;
	boolean isUnExistsedServer(String server_name);
	boolean updateServer(Server server);
	boolean deleteServerByName(String serverName);
	Server findServerByName(String serverName);
	List<Server> queryServerByName(String serverName);
	List<Server> findAll();
	Map<String, Object> queryServerInList(Page page);
	Map<String, Object> queryMyTodoList(String user_account,Page page);
	Map<String, Object> queryMyApplication(String user_account,Page page);
	boolean approve(String taskId,String isApproval,Map<String, Object> variables);
}
